home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / extras / Direct3D / Tools / Maya25 / xskinexptemplates.h < prev   
Encoding:
C/C++ Source or Header  |  2001-10-08  |  2.5 KB  |  74 lines

  1. //-----------------------------------------------------------------------------
  2. // File: XSkinExpTemplates.h
  3. //
  4. // Desc: Custom templates used for skin export format.
  5. //
  6. // Copyright (C) 1998-2000 Microsoft Corporation. All Rights Reserved.
  7. //-----------------------------------------------------------------------------
  8. #ifndef __XSKINEXPTEMPLATES_H__
  9. #define __XSKINEXPTEMPLATES_H__
  10.  
  11. // {3CF169CE-FF7C-44ab-93C0-F78F62D172E2}
  12. DEFINE_GUID(DXFILEOBJ_XSkinMeshHeader,
  13. 0x3cf169ce, 0xff7c, 0x44ab, 0x93, 0xc0, 0xf7, 0x8f, 0x62, 0xd1, 0x72, 0xe2);
  14.  
  15. // {B8D65549-D7C9-4995-89CF-53A9A8B031E3}
  16. DEFINE_GUID(DXFILEOBJ_VertexDuplicationIndices, 
  17. 0xb8d65549, 0xd7c9, 0x4995, 0x89, 0xcf, 0x53, 0xa9, 0xa8, 0xb0, 0x31, 0xe3);
  18.  
  19. // {6F0D123B-BAD2-4167-A0D0-80224F25FABB}
  20. DEFINE_GUID(DXFILEOBJ_SkinWeights, 
  21. 0x6f0d123b, 0xbad2, 0x4167, 0xa0, 0xd0, 0x80, 0x22, 0x4f, 0x25, 0xfa, 0xbb);
  22.  
  23. // {A3EB5D44-FC22-429d-9AFB-3221CB9719A6}
  24. DEFINE_GUID(DXFILEOBJ_Patch, 
  25. 0xa3eb5d44, 0xfc22, 0x429d, 0x9a, 0xfb, 0x32, 0x21, 0xcb, 0x97, 0x19, 0xa6);
  26.  
  27. // {D02C95CC-EDBA-4305-9B5D-1820D7704BBF}
  28. DEFINE_GUID(DXFILEOBJ_PatchMesh, 
  29. 0xd02c95cc, 0xedba, 0x4305, 0x9b, 0x5d, 0x18, 0x20, 0xd7, 0x70, 0x4b, 0xbf);
  30.  
  31. #define XSKINEXP_TEMPLATES \
  32.         "xof 0303txt 0032\
  33.         template XSkinMeshHeader \
  34.         { \
  35.             <3CF169CE-FF7C-44ab-93C0-F78F62D172E2> \
  36.             WORD nMaxSkinWeightsPerVertex; \
  37.             WORD nMaxSkinWeightsPerFace; \
  38.             WORD nBones; \
  39.         } \
  40.         template VertexDuplicationIndices \
  41.         { \
  42.             <B8D65549-D7C9-4995-89CF-53A9A8B031E3> \
  43.             DWORD nIndices; \
  44.             DWORD nOriginalVertices; \
  45.             array DWORD indices[nIndices]; \
  46.         } \
  47.         template SkinWeights \
  48.         { \
  49.             <6F0D123B-BAD2-4167-A0D0-80224F25FABB> \
  50.             STRING transformNodeName;\
  51.             DWORD nWeights; \
  52.             array DWORD vertexIndices[nWeights]; \
  53.             array float weights[nWeights]; \
  54.             Matrix4x4 matrixOffset; \
  55.         } \
  56.         template Patch \
  57.         { \
  58.             <A3EB5D44-FC22-429D-9AFB-3221CB9719A6> \
  59.             DWORD nControlIndices; \
  60.             array DWORD controlIndices[nControlIndices]; \
  61.         } \
  62.         template PatchMesh \
  63.         { \
  64.             <D02C95CC-EDBA-4305-9B5D-1820D7704BBF> \
  65.             DWORD nVertices; \
  66.             array Vector vertices[nVertices]; \
  67.             DWORD nPatches; \
  68.             array Patch patches[nPatches]; \
  69.         } "
  70.  
  71.  
  72. #endif //__XSKINEXPTEMPLATES_H__
  73.  
  74.